//
//  Model.m
//  17作业
//
//  Created by dllo on 16/8/7.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "Model.h"


@implementation Model

//- (instancetype)copyWithZone:(NSZone *)zone
//{
//    Model *model = [[Model allocWithZone:zone] init];
//    model.name = _name;
//    model.phoneNumber = _phoneNumber;
//    model.gender = _gender;
//    model.age = _age;
//    return model;
//}

- (instancetype)initWithName:(NSString *)name
                      gender:(NSString *)gernder
                 phoneNumber:(NSString *)phoneNumber
                         age:(NSString *)age
{
    self = [super init];
    if (self) {
        _name = name;
        _gender = gernder;
        _phoneNumber = phoneNumber;
        _age = age;
    }
    return self;
}

- (NSString *)description
{
    return [NSString stringWithFormat:@"%@--%@--%@--%@",_name,_phoneNumber,_gender,_age];
}

@end
